package com.example.newsmanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.newsmanager.entity.Collect;
import com.example.newsmanager.entity.News;

import java.util.Map;

public interface NewsService extends IService<News> {
    //List<News> getAllNewsService(Integer pages);

    //List<News> getAllNewsService();


    //List<News> getAllNewsService(Integer pages);

   // List<News> getAllNewsWithAuthor();

    //List<News> getMyAllNewsService(Integer userId, Integer pages);

    //List<News> getTypeAllNewsService(String newsType,Integer pages);

    //String getUserName(String newsId);

    void addCollect(Collect collect);

    Map<String, Object> getCollectList(String userId, Integer pages, Integer size);

    Map<String, Object> getListById(String userId, Integer pages, Integer size);

    //Map<String, Object> searchNews(String keyword);

    Map<String, Object> searchNews(String keyword, Integer pages, Integer size);



    Map<String, Object> getNewsListByNumber(Integer pages, Integer size);
}
